Includes an aggregation subquery into the incremental maintenance mechanism of a view and uniquely identifies it among other subqueries of the same view.
Namespace:
C1.LiveLinq.LiveViewsAssembly: C1.Silverlight.LiveLinq (in C1.Silverlight.LiveLinq.dll)
Syntax
C# |
---|
public AggregationView<T, TResult> AttachAggregationView<TResult>( Object subqueryId, Func<View<T>, AggregationView<T, TResult>> selector ) |
Visual Basic |
---|
Public Function AttachAggregationView(Of TResult) ( _ subqueryId As Object, _ selector As Func(Of View(Of T), AggregationView(Of T, TResult)) _ ) As AggregationView(Of T, TResult) |
Parameters
- subqueryId
- Type: System..::..Object
A string uniquely specifying this subquery in the view to which it is attached. Can be any string. The only requirement is that different subqueries attached to the same view, if such exist, must have different subquery ids.
- selector
- Type: System..::..Func<(Of <(<'View<(Of <(<'T>)>)>, AggregationView<(Of <(<'T, TResult>)>)>>)>)>
A function to obtain the attached aggregation subview from the view to which it is attached.
Type Parameters
- TResult
- The type of the elements in the aggregation subview.
Return Value
The attached aggregation subview.Remarks
This overload must be used if you have several subviews attached to the same view. The subqueryId' can be any string as long as it is not repeated for two different subviews attached to the same view.
See the other overload for the explanation of the AttachAggregationView method.